import request from '@/utils/request'
import { param } from '../../utils'
// bom:trans:add"
// /bom/trans/list

export function transList(query) {
  return request({
    url: '/bom/trans/list',
    method: 'get',
    params: query
  })
}

export function transAdd(query) {
  return request({
    url: '/bom/trans',
    method: 'post',
    data: query
  })
}

export function transEdit(query) {
  return request({
    url: '/bom/trans',
    method: 'put',
    data: query
  })
}
export function transDel(query) {
  return request({
    url: '/bom/trans/' + query,
    method: 'delete',
  })
}

//trans/getMeasureUnit

export function getMeasureUnit(query) {
  return request({
    url: '/bom/trans/getMeasureUnit',
    method: 'get',
  })
}